# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-tcxparser
_pkgorig=python-tcxparser
pkgver=2.2.0
pkgrel=1
pkgdesc="Simple parser for Garmin TCX files"
url="https://github.com/vkurup/python-tcxparser"
arch="noarch"
license="BSD"
depends="python3 py3-lxml py3-dateutil"
makedepends="py3-setuptools"
source="https://github.com/vkurup/python-tcxparser/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m unittest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
55de171e4eb22cb059697dd0a7c6587a2ae0bc3b1117423c5d90bac84de283e64dae49c9c19f5ed70c2a6f9f79016b16d3d1fb1fec02df5d9da1fcd99327e7b7  python-tcxparser-2.2.0.tar.gz
"
